import syscall
import co

int count = 10

fn main() {
    var str = syscall.get_env('REPEAT_COUNT')
    var temp = str.to_int() catch e {
        0
    }
    if temp > 0 {
        println('read env count success:', temp)
        count = temp
    }

    for int i = 0; i < count; i += 1 {
        println(i, 'hello nature')
        co.sleep(1000)
    }
}